package com.j283_5.wisdom_park.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.j283_5.wisdom_park.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章表 Mapper 接口
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 多条件查询文章信息
     * @param article
     * @return
             */
    List<Article> findArticle(
            @Param("article")Article article,
            @Param("start")
                    Integer start,
            @Param("limit")
                    Integer limit
    );

    Long findArticleCount(
            @Param("article")Article article
    );
}
